﻿<ss:AppView xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  x:Class="WorkSpace.UI.LinkManagementView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:ss="clr-namespace:SmartSpace.UI.Silverlight;assembly=SmartSpace.UI.Silverlight"
    xmlns:part="clr-namespace:WorkSpace.UI.Controls"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot">
        <sdk:TabControl>
            <sdk:TabItem Header="我的连接">
                <part:CategoryListPart x:Name="_ctlCategoryListPart"/>
            </sdk:TabItem>
            <sdk:TabItem Header="分配的连接">
                <sdk:DataGrid Name="_ctlGridLink" Grid.Row="1" AutoGenerateColumns="False" IsReadOnly="True">
                    <sdk:DataGrid.Columns>
                        <sdk:DataGridTextColumn Header="名称" Binding="{Binding Path=Caption}"/>
                        <sdk:DataGridTextColumn Header="地址" Binding="{Binding Path=LinkUrl}"/>
                        <!--<sdk:DataGridTemplateColumn Header="设置应用">
                            <sdk:DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <HyperlinkButton Click="HyperlinkButton_Click" Visibility="{Binding Path=IsEnable, Converter={StaticResource EnableVisibilityConverter}}">
                                            <TextBlock Text="启用"/>
                                        </HyperlinkButton>
                                        <HyperlinkButton Click="ButtonDisable_Click" Visibility="{Binding Path=IsEnable, Converter={StaticResource DisableVisibilityConverter}}">
                                            <TextBlock Text="禁用"/>
                                        </HyperlinkButton>
                                    </StackPanel>
                                </DataTemplate>
                            </sdk:DataGridTemplateColumn.CellTemplate>
                        </sdk:DataGridTemplateColumn>-->
                    </sdk:DataGrid.Columns>
                </sdk:DataGrid>
            </sdk:TabItem>
        </sdk:TabControl>
    </Grid>
</ss:AppView>
